import request from "@/utils/request.js";

//测试数据库连接
export const testConnection = (model) => {
    return request.post('/tool/generate/test/connection', model)
};

//分页查询
export const findPageApi = (pageRequest) => {
    return request.post('/tool/generate/findPage', pageRequest)
};

//代码生成
export const generateCode = (model) => {
    return request.post('/tool/generate/codeGenerate', model, {responseType: 'blob'})
};